import java.util.ArrayList;
import java.util.List;


public class Player {
	
	private final String name;
	private int score;
	private List<RPSEnum> list_moves;
	private final int size;
	private int next;
	
	
	public Player(String name, List<RPSEnum> list) {
		this.name = name;
		this.score = 0;
		this.size = 10;
		this.list_moves = list;
		this.next = -1;
		
	}
	
	public Player(String name) {
		this.name = name;
		this.score = 0;
		this.size = 10;
		this.next = -1;
		
		this.list_moves = Random_moves(size);
		
	}
	
	ArrayList<RPSEnum> Random_moves(int size){
		
      ArrayList<RPSEnum> randList = new ArrayList<RPSEnum>();
		
		for(int i = 0; i < size; i++){
			randList.add(RPSEnum.getRandom());
		}
		
		return randList;
	
	}
	
	
	public RPSEnum getNextMove(){
		
		next ++;
		
		return list_moves.get(next) ;
	}
	
	
	
	public String getName(){
		return name;
	}
	
	public int getScore(){
		return score;
	}
	
	public void setScore(int scor){
		score = scor;
	}
	
	public int getSize(){
		return size;
	}


}
